<%-- 
    Document   : _customerProfile
    Created on : May 16, 2010, 3:47:05 PM
    Author     : longdm
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<f:view>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Customer Profile page</title>
    </head>
    <body>
        <h1><h:outputText value="Customer profile page" /></h1>
        <h:form>
            <h:panelGrid columns="2">
                <h:outputText value="Customer Login Name:"/>
                <h:outputText value="#{CustomerController.currentCustomer.loginName}"/>

                <h:outputText value="Customer ID:"/>
                <h:outputText value="#{CustomerController.currentCustomer.customerId}"/>

                <h:outputText value="Customer name:"/>
                <h:inputText value="#{CustomerController.currentCustomer.customerName}"/>

                <h:outputText value="Customer DOB:"/>
                <h:inputText value="#{CustomerController.currentCustomer.dob}"/>

                <h:outputText value="Customer email:"/>
                <h:inputText value="#{CustomerController.currentCustomer.email}"/>

                <h:outputText value="Customer City:"/>
                <h:inputText value="#{CustomerController.currentCustomer.city}"/>

                <h:outputText value="Customer Cell no:"/>
                <h:inputText value="#{CustomerController.currentCustomer.cell}"/>

                <h:outputText value="Customer Address:"/>
                <h:inputText value="#{CustomerController.currentCustomer.address}"/>

                <h:outputText value="Customer Bank name:"/>
                <h:inputText value="#{CustomerController.currentCustomer.bankName}"/>

                <h:outputText value="Customer Bank account number:"/>
                <h:inputText value="#{CustomerController.currentCustomer.bankAccNo}"/>

                <h:commandLink action="#{CustomerController.editCustomer}" value="Update"/>
                <h:commandLink action="#{CustomerController.cancel2}" value="Cancel"/>
            </h:panelGrid>
        </h:form>
    </body>
</html>
</f:view>